//模拟后端生成部门剩余额度
import { MockMethod } from "vite-plugin-mock";


export default [
  {
    url: "/dashboard",
    method: "post",
    response: () => {
      return {
        success: true,
        data: {
          dashboard: [
            { dep_id: 10, restMoney: 10000, protect: [2, 1000], tools: [2, 1000], furniture: [2, 1000], machine: [2, 1000], instrument: [2, 1000], electron: [2, 1000], others: [2, 1000] },
            { dep_id: 10, restMoney: 10000, protect: [2, 1000], tools: [2, 1000], furniture: [2, 1000], machine: [2, 1000], instrument: [2, 1000], electron: [2, 1000], others: [2, 1000] },
            { dep_id: 10, restMoney: 10000, protect: [2, 1000], tools: [2, 1000], furniture: [2, 1000], machine: [2, 1000], instrument: [2, 1000], electron: [2, 1000], others: [2, 1000] },
            { dep_id: 10, restMoney: 10000, protect: [2, 1000], tools: [2, 1000], furniture: [2, 1000], machine: [2, 1000], instrument: [2, 1000], electron: [2, 1000], others: [2, 1000] },
            { dep_id: 10, restMoney: 10000, protect: [2, 1000], tools: [2, 1000], furniture: [2, 1000], machine: [2, 1000], instrument: [2, 1000], electron: [2, 1000], others: [2, 1000] }
          ]
          // /** 部门 */
          // dep_id: string,
          // /** 剩余金额数 */
          // restMoney: number,
          // /** 劳动保护用品 */
          // protect: array,
          // /**  工具器具数量 */
          // tools: array,
          // /** 办公家具数量 */
          // furniture:array,
          // /** 小型机械动力及起重设备数量 */
          // machine: array,
          // /** 仪器仪表数量 */
          // instrument: array,
          // /** 电子信息设备数量 */
          // electron: array,
          // /** 其他数量 */
          // others: array
        }
      };
    }
  }
] as MockMethod[];
